import {Pipe, PipeTransform} from '@angular/core';
import {Enum} from "../utils/enum";

@Pipe({
  name: 'enum'
})
export class EnumPipe implements PipeTransform {

  transform(value: string, enumid: string): string {
    return Enum.getEnumText(enumid, value);
  }

}
